package lc.oa.net.ws;

import android.util.Log;

import org.junit.Test;

import java.util.logging.Logger;

import static org.junit.Assert.*;

/**
 * @Description: java类作用描述
 * @Author: lucifer
 * @CreateDate: 2020/8/10 10:03
 * @UpdateUser:
 * @UpdateDate:
 * @UpdateRemark:
 * @Version: 1.0
 */
public class WebSocketHandlerTest {

    @Test
    public void connect() throws InterruptedException {
        Log.i("Web socket test","Web socket test");
       WebSocketHandler webSocketHandler =WebSocketHandler.getInstance();
        String token="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJjb3JwSWQiOm51bGwsImNvcnBOYW1lIjpudWxsLCJlbmFibGVkIjowLCJleHBpcmUiOjE1OTc2MzAwNDgxNjYsImlzVUtleUNoZWNrIjowLCJtb2JpbGUiOiIxODMxMTMyOTAxMCIsInJvbGUiOjAsInRpbWUiOjAsInVzZXJJZCI6ImRmYjA0MWI5MGRiMjQ5NTNiNjA1YjZjN2U2ZjQyYzM1IiwidXNlck5hbWUiOiLlvKDmmZPmnpcifQ.HpkMVMtowvUwacHTIre7N_o-H0z4nAoat8obNunv8YM";
        webSocketHandler.connect(token);
        while (true){
            Thread.sleep(2000);
            Log.d("休眠","休眠2秒");
        }
    }
}